package com.myblog.controller;

import com.myblog.domain.GlobalResponse;
import com.myblog.services.AdminLogoutService;
import com.myblog.services.LogoutService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LogoutController {

    @Resource
    AdminLogoutService adminLogoutService;


    @PostMapping("/user/logout")
    public GlobalResponse logout(){
        return adminLogoutService.logout();
    }

}
